{% load diary_tags %}
<!-- /post-right -->
<aside class="post-right hidden-xs">
    <div class="post-right-item">
        <h4 class="post-right-title">日记总数</h4>
        <p>I've written {% total_logs %} logs so far.</p>
    </div>
    <section class="widget post-right-item">
        <h4 class="post-right-title">所有标签</h4>
        <div class="tags">
            {% for tag in tags %} 
            <a href="{% url "diary:index" %}tag/{{ tag.name }}">{{ tag.name }}({% tag_logs tag.id %})</a>
            {% endfor %} 
        </div>
    </section>
    <div class="p-4 post-right-item">
        <h4 class="post-right-title">文章归档</h4>
        {% for archive in archive_list %}
            <ol class="list-unstyled mb-0">
                <li><a href="{% url 'diary:index' %}archive/{{ archive | slice:":4" }}/{{ archive | slice:"5:7" }}">{{ archive }}</a></li>
            </ol>
        {% endfor %}
    </div>
    <div class="post-right-item">
        <h4 class="post-right-title">联系方式</h4>
            <p>Phone:18611896669</p>
            <p>Email:me@zhangzhixiong.com</p>
        </div>
    </div>
</aside>
